#include<stdio.h>
#include<stdlib.h>

static int odd,p;

void calculate(int n){
    p = 0;
    while(n%2 == 0){
         n /= 2;
        p++;
    }
    odd = n;
}

int main(){
    int d = 120;
    calculate(d);
    printf("%d %d\n",odd,p);
    return 0;
}
